<?xml version="1.0" encoding="UTF-8"?>

<beans xmlns="http://www.springframework.org/schema/beans"
	xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:context="http://www.springframework.org/schema/context"
	xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans.xsd
		http://www.springframework.org/schema/context http://www.springframework.org/schema/context/spring-context.xsd">

	<!-- Uncomment and add your base-package here: -->
	<context:component-scan base-package="com.codeplex.springsurv" />

	<import resource="data-access-config.xml" />
	
	<!-- USER FEATURES RELATED BEANS -->
	
	<bean id="User" class="com.codeplex.springsurv.User" />

	<bean id="UserController" class="com.codeplex.springsurv.controllers.UserController">

	</bean>

	<bean id="userMapper" class="org.mybatis.spring.mapper.MapperFactoryBean">
		<property name="mapperInterface" value="com.codeplex.springsurv.dataaccess.mappers.UsersMapper" />
		<property name="sqlSessionFactory" ref="sqlSessionFactory" />
	</bean>
	
	<bean id="UserService" class="com.codeplex.springsurv.businessLogic.UserService" >
	</bean>
	
	<!-- SURVEY FEATURES RELATED BEANS -->
	
	<bean id="Survey" class="com.codeplex.springsurv.Survey" />
	
	<bean id="SurveyController" class="com.codeplex.springsurv.controllers.SurveyController" />
	
	<bean id="surveyMapper" class="org.mybatis.spring.mapper.MapperFactoryBean">
		<property name="mapperInterface" value="com.codeplex.springsurv.dataaccess.mappers.SurveysMapper" />
		<property name="sqlSessionFactory" ref="sqlSessionFactory" />
	</bean>
	
	<bean id="SurveyService" class="com.codeplex.springsurv.businessLogic.SurveyService" >
	</bean>
	
	
</beans>
